package com.three.lab.fragment;

import android.content.Context;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.View;
import android.widget.TextView;

import com.three.lab.R;
import com.three.lab.base.AppConstant;
import com.three.lab.base.BaseFragment;
import com.three.lab.widget.LotteryView;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link WorkFragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class WorkFragment extends BaseFragment {

    private LotteryView lotteryView;
    private TextView tvTitle;

    public static WorkFragment newInstance(int index, String title) {
        WorkFragment fragment = new WorkFragment();
        Bundle args = new Bundle();
        args.putInt(AppConstant.INDEX, index);
        args.putString(AppConstant.INDEX_NAME, title);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected void initArguments(Bundle bundle) {}

    @Override
    protected int bindLayout() {
        return R.layout.fragment_work;
    }

    @Override
    protected void initViews(View view, Bundle savedInstanceState) {
        tvTitle = $(R.id.tv_title);
        tvTitle.setText(R.string.work);
        $(R.id.iv_left).setVisibility(View.GONE);
        lotteryView = $(R.id.lotteryview);
    }

    @Override
    public void initListener() {}

    @Override
    public void widgetClick(View v) {}

    @Override
    protected void initData(Context context) {}
}